<script setup>
const router = useRouter()
const route = useRoute();
const isRouterAlive = ref(true)
const reload = () => {
  isRouterAlive.value = false
  nextTick(() => {
    isRouterAlive.value = true
  })
}

provide('reload', reload) // `reload` 函数提供给子组件使用

</script>

<template>
  <router-view v-if="isRouterAlive" />
</template>

<style scoped></style>
